package cc.vicp.djx314.starfood.dao.test;

import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.session.RowBounds;

import cc.vicp.djx314.starfood.domain.dish.Dish;
import cc.vicp.djx314.starfood.domain.dish.ProvideTime;

public class AspectJTestBase {

	public static Integer canshu = 123;

	public static String myName = "水山清风";

	public Integer getCacheIntTest() {
		return canshu;
	}

	public Integer getIntTest() {
		return canshu;
	}

	public boolean updateCacheInt() {
		return true;
	}

	public boolean updateInt() {
		return true;
	}

	public String getCacheStrTest(String name, RowBounds rowBounds) {
		return myName;
	}

	public Dish getDish(List<ProvideTime> provideTimes) {
		Dish dish = new Dish();
		dish.setProvideTimes(provideTimes);
		return dish;
	}

	public List<Dish> getListDish(List<List<ProvideTime>> provideTimes) {
		List<Dish> dishes = new ArrayList<Dish>();
		for (List<ProvideTime> provideTime : provideTimes) {
			Dish dish = new Dish();
			dish.setProvideTimes(provideTime);
			dishes.add(dish);
		}
		return dishes;
	}

}